home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15770 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.internex.net.au!usenet
  2. From: sultan@connexus.apana.org.au (Jon Hornstein)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: string class in STL?
  5. Date: Mon, 08 Apr 1996 20:54:48 GMT
  6. Organization: connexus.apana.org.au
  7. Message-ID: <4ka2t9$nrv@preeda.internex.net.au>
  8. References: <4k53js$i4o@cloner2.ix.netcom.com>
  9. NNTP-Posting-Host: dialin-17.internex.net.au
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. As far as I know the string class generally gets bundled in with the
  13. other compiler specific collection classes and not with STL.
  14.  
  15. STL is more about manipulating with generic algorithms classes of data
  16. and not specifying specific instances of one such class like for
  17. example the string/String class.
  18.  
  19. Jon
  20.  
  21. VanCLy@ix.netcom.com  (Van Chinh Ly) wrote:
  22.  
  23. >Is there a 'string' class in the STL?
  24.  
  25. >I was enrolled in an STL course, couldn't make it,
  26. >got the course materials afterwards, read it, followed
  27. >the examples on one of the slides:
  28.  
  29. >#include "map.h"
  30. >#include "bstring.h"
  31.  
  32. >int main()
  33. >{
  34. >    map<string, int, less<string>> name_age;
  35.  
  36. >    name_age["Some name"] = 14;
  37.  
  38. >    cout << "Some name's value = " << name_age["Some name"] << endl;
  39.  
  40. >    return 0;
  41. >}
  42.  
  43.  
  44.  
  45. >First of all, "bstring.h" is not one of my STL *.h files.  Secondly,
  46. >I performed a "grep" command through all the header files but couldn't
  47. >find any "string" class.
  48.  
  49. >Can someone help me?
  50.  
  51. >Van
  52.  
  53.  
  54.